package com.molyfun.parents.rest.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by Administrator on 2017/11/13 0013.
 */

public class CityBean implements IPickerViewData {

    private String id;
    private String province;
    private List<CitylistBean> citylist;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public List<CitylistBean> getCitylist() {
        return citylist;
    }

    public void setCitylist(List<CitylistBean> citylist) {
        this.citylist = citylist;
    }

    public String getPickerViewText() {
        return this.province;
    }

    public static class CitylistBean {
        /**
         * city : 北京市
         * countrylist : [{"country":"东城区","id":"e548cebc5e287041015e2bccd6f90029"},{"country":"西城区","id":"e548cebc5e287041015e2bccd6fc002a"},{"country":"朝阳区","id":"e548cebc5e287041015e2bccd6fd002b"},{"country":"丰台区","id":"e548cebc5e287041015e2bccd6ff002c"},{"country":"石景山区","id":"e548cebc5e287041015e2bccd701002d"},{"country":"海淀区","id":"e548cebc5e287041015e2bccd702002e"},{"country":"门头沟区","id":"e548cebc5e287041015e2bccd705002f"},{"country":"房山区","id":"e548cebc5e287041015e2bccd7060030"},{"country":"通州区","id":"e548cebc5e287041015e2bccd7080031"},{"country":"顺义区","id":"e548cebc5e287041015e2bccd7090032"},{"country":"昌平区","id":"e548cebc5e287041015e2bccd70a0033"},{"country":"大兴区","id":"e548cebc5e287041015e2bccd70b0034"},{"country":"怀柔区","id":"e548cebc5e287041015e2bccd70d0035"},{"country":"平谷区","id":"e548cebc5e287041015e2bccd70e0036"},{"country":"密云县","id":"e548cebc5e287041015e2bccd70f0037"},{"country":"延庆县","id":"e548cebc5e287041015e2bccd7110038"}]
         * id : e548cebc5e287041015e2bccd6da0028
         */

        private String city;
        private String id;
        private List<CountrylistBean> countrylist;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<CountrylistBean> getCountrylist() {
            return countrylist;
        }

        public void setCountrylist(List<CountrylistBean> countrylist) {
            this.countrylist = countrylist;
        }

        public static class CountrylistBean {
            /**
             * country : 东城区
             * id : e548cebc5e287041015e2bccd6f90029
             */

            private String country;
            private String id;

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }
        }
    }

    @Override
    public String toString() {
        return "CityBean{" +
                "id='" + id + '\'' +
                ", province='" + province + '\'' +
                ", citylist=" + citylist +
                '}';
    }

}
